package com.example.mapper;

import com.example.entity.PostsSection;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PostsSectionMapper {
    int insert(PostsSection postsSection);
    
    List<PostsSection> selectAll(PostsSection postsSection);

    void updateById(PostsSection postsSection);

    void deleteById(Integer id);

    @Select("select * from `posts_section` where id = #{id}")
    PostsSection selectById(Integer id);
}
